﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;


public partial class Templete : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HtmlGenericControl html = new HtmlGenericControl();
        html = new HtmlGenericControl();
        html.TagName = "link";
        html.Attributes.Add("rel", "shortcut icon");
        html.Attributes.Add("type", "image/png");
        html.Attributes.Add("href", Request.ApplicationPath + "/img/favicons/favicon.png");
        head.Controls.AddAt(0,html);


        html = new HtmlGenericControl();
        html.TagName = "link";
        html.Attributes.Add("rel", "icon");
        html.Attributes.Add("type", "image/png");
        html.Attributes.Add("href", Request.ApplicationPath + "/img/favicons/favicon.png");
        head.Controls.AddAt(1,html);


        html = new HtmlGenericControl();
        html.TagName = "link";
        html.Attributes.Add("rel", "apple-touch-icon");
        html.Attributes.Add("href", Request.ApplicationPath + "/img/favicons/apple.png");
        head.Controls.AddAt(2,html);


        html = new HtmlGenericControl();
        html.TagName = "link";
        html.Attributes.Add("rel", "stylesheet");
        html.Attributes.Add("type", "text/css");
        html.Attributes.Add("href", Request.ApplicationPath + "/css/style.css");
        head.Controls.AddAt(3,html);


    //     <!-- Your Custom Stylesheet -->
    //<link rel="stylesheet" href="css/custom.css" type="text/css" />
        html = new HtmlGenericControl();
        html.TagName = "link";
        html.Attributes.Add("rel", "stylesheet");
        html.Attributes.Add("type", "text/css");
        html.Attributes.Add("href", Request.ApplicationPath + "/css/custom.css");
        head.Controls.AddAt(4,html);


    //     <!--swfobject - needed only if you require <video> tag support for older browsers -->
    //<script type="text/javascript" src="js/swfobject.js"></script>
    //<!-- jQuery with plugins -->
    //<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    //<!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
    //<script type="text/javascript" src="js/jquery.ui.core.min.js"></script>
    //<script type="text/javascript" src="js/jquery.ui.widget.min.js"></script>
    //<script type="text/javascript" src="js/jquery.ui.tabs.min.js"></script>
  

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/swfobject.js");
        head.Controls.AddAt(5,html);


        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery-1.7.1.min.js");
        head.Controls.AddAt(6,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.ui.core.min.js");
        head.Controls.AddAt(7,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.ui.widget.min.js");
        head.Controls.AddAt(8,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.ui.tabs.min.js");
        head.Controls.AddAt(9,html);

        //<!-- jQuery tooltips -->
        //<script type="text/javascript" src="js/jquery.tipTip.min.js"></script>
        //<!-- Superfish navigation -->
        //<script type="text/javascript" src="js/jquery.superfish.min.js"></script>
        //<script type="text/javascript" src="js/jquery.supersubs.min.js"></script>
        //<!-- jQuery popup box -->
        //<script type="text/javascript" src="js/jquery.nyroModal.pack.js"></script>
        //<!-- jQuery form validation -->
        //<script type="text/javascript" src="js/jquery.validate_pack.js"></script>

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.tipTip.min.js");
        head.Controls.AddAt(10,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.superfish.min.js");
        head.Controls.AddAt(11,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.supersubs.min.js");
        head.Controls.AddAt(12,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.nyroModal.pack.js");
        head.Controls.AddAt(13,html);

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.validate_pack.js");
        head.Controls.AddAt(14,html);


         html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/jquery.dataTables.min.js");
        head.Controls.AddAt(15, html);

       

        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/administry.js");
        head.Controls.AddAt(16, html);


        html = new HtmlGenericControl();
        html.TagName = "Script";
        html.Attributes.Add("type", "text/javascript");
        html.Attributes.Add("src", Request.ApplicationPath + "/js/ie8.js");
        head.Controls.AddAt(17, html);


        //html = new HtmlGenericControl();
        //html.TagName = "Script";
        //html.Attributes.Add("type", "text/javascript");
        //html.Attributes.Add("src", Request.ApplicationPath + "/Resources/easyUI/jquery-1.4.4.min.js");
        //head.Controls.AddAt(18, html);

        //html = new HtmlGenericControl();
        //html.TagName = "Script";
        //html.Attributes.Add("type", "text/javascript");

        //html.Attributes.Add("src", Request.ApplicationPath + "/Resources/easyUI/jquery.easyui.min.js");
        //head.Controls.AddAt(19, html);



        //html = new HtmlGenericControl();
        //html.TagName = "link";
        //html.Attributes.Add("rel", "stylesheet");
        //html.Attributes.Add("type", "text/css");
        //html.Attributes.Add("href", Request.ApplicationPath + "/Resources/easyUI/themes/icon.css");
        //head.Controls.AddAt(20, html);

        //html = new HtmlGenericControl();
        //html.TagName = "link";
        //html.ID = "divdialog";
        //html.Attributes.Add("rel", "stylesheet");
        //html.Attributes.Add("type", "text/css");
        //html.Attributes.Add("href", Request.ApplicationPath + "/resources/styles/divdialog.css");
        //head.Controls.AddAt(21, html);


        //html = new HtmlGenericControl();
        //html.TagName = "Script";
        //html.Attributes.Add("type", "text/javascript");

        //html.Attributes.Add("src", Request.ApplicationPath + "/JavaScript/common.js");
        //head.Controls.AddAt(22, html);
   
   

       
    }
}
